<?php echo'<?xml version="1.0" encoding="UTF-8"?>'?>
<data>
<?php foreach ( $data as &$d ): ?>
  <?=$d ?>
<?php endforeach; ?>
</data>